﻿using System.ComponentModel;
namespace WPFExcelReport
{
    public partial class K14MZ : SDBASE
    {
        /// <summary>
        /// 专业维护
        /// </summary>
        public K14MZ()
        {
            if (DesignerProperties.GetIsInDesignMode(this))
                return;
            MV = new VSDDAT();
            DataContext = MV;
            SDSA = "14MZ"; 
            InitializeComponent(); 
        }
        public override void Window_Loaded(object sender, System.Windows.RoutedEventArgs e)
        {
            if (DesignerProperties.GetIsInDesignMode(this))
                return;
            if (IsLoaded)
                return;
            base.Window_Loaded(sender, e); 
            Load();
        }
        public void Load()
        {
            if (SDSA.Trim().Length == 0)
                return;
            dwData = TBMain.NewRow();
            dwData["SDSA"] = "0014";
             dwData["SDKEY"] = " AND SDKEY ='XXXXXX'";
            SResult = ((VSDDAT)MV).QuerySDDAT(dwData, 14);
            MergeData(SResult, false);
            dwData = TBMain.Rows.Add();
            dwData["SDSA"] = "14MZ";
            dwData["KEY"] = "GX";
            dwData["DES"] = "干洗";
            dwData = TBMain.Rows.Add();
            dwData["SDSA"] = "14MZ";
            dwData["KEY"] = "NG"; ;
            dwData["DES"] = "不可干洗"; 
        } 
    }
}
